package com.it.schoolbookshop_back.entities.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String role;
    private String status;
    private String studentId;
    private String realName;
    private String department;
    private String address;
    private String email;
    private String phone;
    private String wechat;
    private byte[] avatar;
    private String avatarType;
    private String bio;
    private Boolean emailVerified = false;
    private Boolean phoneVerified = false;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Integer bookCount;
    private Integer soldCount;
    private Integer boughtCount;
    private Integer favoriteCount;
    private LocalDateTime lastLoginAt;
    private Double balance;
}